/*
 * Copyright 2010 HighCraft, Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package ru.highcraft.apis.littlesms;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * User: neoasket
 * Date: 2010-09-20
 * Time: 00:47:54
 */
public class LittleSmsResponse {

    public static final String SUCCESS = "success";
    public static final String ERROR = "error";

    private String status;
    private String[] recipients;
    private int[] messages_id;
    private int count;
    private int parts;
    private BigDecimal price;
    private BigDecimal balance;
    private String phone;
    private byte test;
    private Map<Integer, String> messages;
    private String error;
    private String message;
    private List<LittleSmsResponseHistory> history;

    public class LittleSmsResponseHistory {

        private int id;
        private String recipient;
        private String sender;
        private String message;
        private int parts;
        private BigDecimal price;
        private String status;
        private Integer bulk_id;
        private String created_at;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getRecipient() {
            return recipient;
        }

        public void setRecipient(String recipient) {
            this.recipient = recipient;
        }

        public String getSender() {
            return sender;
        }

        public void setSender(String sender) {
            this.sender = sender;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public int getParts() {
            return parts;
        }

        public void setParts(int parts) {
            this.parts = parts;
        }

        public BigDecimal getPrice() {
            return price;
        }

        public void setPrice(BigDecimal price) {
            this.price = price;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public Integer getBulk_id() {
            return bulk_id;
        }

        public void setBulk_id(Integer bulk_id) {
            this.bulk_id = bulk_id;
        }

        public String getCreated_at() {
            return created_at;
        }

        public void setCreated_at(String created_at) {
            this.created_at = created_at;
        }
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String[] getRecipients() {
        return recipients;
    }

    public void setRecipients(String[] recipients) {
        this.recipients = recipients;
    }

    public int[] getMessages_id() {
        return messages_id;
    }

    public void setMessages_id(int[] messages_id) {
        this.messages_id = messages_id;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getParts() {
        return parts;
    }

    public void setParts(int parts) {
        this.parts = parts;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public byte getTest() {
        return test;
    }

    public void setTest(byte test) {
        this.test = test;
    }

    public Map<Integer, String> getMessages() {
        return messages;
    }

    public void setMessages(Map<Integer, String> messages) {
        this.messages = messages;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<LittleSmsResponseHistory> getHistory() {
        return history;
    }

    public void setHistory(List<LittleSmsResponseHistory> history) {
        this.history = history;
    }
}
